import java.io.File;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by Black-Laptop on 7/11/2017.
 */
public class test {
    public static void main(String args[]) throws ParseException {
        File aFile=new File("C:\\Users\\gjw\\Desktop\\projects\\files\\a");
        List<File> files =new ArrayList();
        files.add(aFile);
        File bFile=new File("C:\\Users\\gjw\\Desktop\\projects\\files\\a");
        if (files.contains(bFile)){
            System.out.println("ppppppp");
        }else{
            System.out.println("test.main()");
        }
        
    }
}
